package com.example.designpattenexample.strategy.example;

public class Client {
    public static void main(String[] args) {
        ShoppingCard shoppingCard = new ShoppingCard(9,100);
        PurchaseOrder order = new PurchaseOrder();

        System.out.println("订单总金额：" + order.getTotalOrderMount(shoppingCard) + "优惠：" + shoppingCard.getDiscountAmount());
    }
}
